/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "song_channelsongs")
//@NamedQueries({@NamedQuery(name = "SongChannelsongs.findAll", query = "SELECT s FROM SongChannelsongs s"), @NamedQuery(name = "SongChannelsongs.findById", query = "SELECT s FROM SongChannelsongs s WHERE s.id = :id"), @NamedQuery(name = "SongChannelsongs.findByChannelid", query = "SELECT s FROM SongChannelsongs s WHERE s.channelid = :channelid"), @NamedQuery(name = "SongChannelsongs.findBySongid", query = "SELECT s FROM SongChannelsongs s WHERE s.songid = :songid")})
public class SongChannelsongs implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "channelid")
    private String channelid;
    @Column(name = "songid")
    private Integer songid;

    public SongChannelsongs() {
    }

    public SongChannelsongs(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getChannelid() {
        return channelid;
    }

    public void setChannelid(String channelid) {
        this.channelid = channelid;
    }

    public Integer getSongid() {
        return songid;
    }

    public void setSongid(Integer songid) {
        this.songid = songid;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SongChannelsongs)) {
            return false;
        }
        SongChannelsongs other = (SongChannelsongs) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.SongChannelsongs[id=" + id + "]";
    }

}
